package com.zzxy.spring12.aspect;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.aspectj.lang.JoinPoint;

public class MyAspectAop implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("before....");
        Object obj = methodInvocation.proceed();
        System.out.println("after.....");
        return obj;
    }

    public void myBefore(JoinPoint joinPoint) throws Throwable {
    }

    public void myAfterReturning(JoinPoint joinPoint) throws Throwable {
    }
}
